home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Mindy / Mindy 1.2 - Mac PPC / demos / hello-world / hello-world.dylan < prev    next >
Encoding:
Text File  |  1995-03-15  |  1.6 KB  |  42 lines  |  [TEXT/MMCC]

  1. module: Dylan-User
  2. rcs-header: $Header: hello-world.dylan,v 1.4 94/12/02 06:31:16 wlott Exp $
  3.  
  4. //======================================================================
  5. //
  6. // Copyright (c) 1994  Carnegie Mellon University
  7. // All rights reserved.
  8. // 
  9. // Use and copying of this software and preparation of derivative
  10. // works based on this software are permitted, including commercial
  11. // use, provided that the following conditions are observed:
  12. // 
  13. // 1. This copyright notice must be retained in full on any copies
  14. //    and on appropriate parts of any derivative works.
  15. // 2. Documentation (paper or online) accompanying any system that
  16. //    incorporates this software, or any part of it, must acknowledge
  17. //    the contribution of the Gwydion Project at Carnegie Mellon
  18. //    University.
  19. // 
  20. // This software is made available "as is".  Neither the authors nor
  21. // Carnegie Mellon University make any warranty about the software,
  22. // its performance, or its conformity to any specification.
  23. // 
  24. // Bug reports, questions, comments, and suggestions should be sent by
  25. // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  26. //
  27. //======================================================================
  28. //
  29. // This is the canonical ``hello, world'' demo.
  30. //
  31. // Mindy invokes the generic function main with the command line arguments
  32. // as strings.  Given that we don't care what they are, we just ignore them.
  33. //
  34. // We just put this in the Dylan-User module, because there is no reason to
  35. // define out own module for something this simplistic.
  36.  
  37.  
  38. define method main (argv0, #rest noise)
  39.     let greetings = "Hello, World.\n";
  40.     puts(greetings);
  41. end;
  42.